<?php
class PartnersCatScore extends CActiveRecord {
    
    public $catId;
    public $mean;
    public $partnerid;
    public $field1;
    public $field2;
    public $field3;
    public $field4;
    public $oldField1;
    public $oldField2;
    public $oldField3;
    public $oldField4;
    
    
    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function tableName() {
        return 'partners_cat_score';
    }
    
    public function relations() {
        return array(
            'cat'=>array(self::HAS_ONE, 'PartnerCat', 'catId'),
            'partner'=>array(self::HAS_ONE, 'Partner', 'partnerid'),
        );
    }
}
